package cn.com.shopec.erp.base.commo;

import org.springframework.stereotype.Component;

import cn.com.shopec.erp.base.entity.AuditSetting;
import cn.com.shopec.erp.base.vo.AuditSettingVo;

/**
 * @ClassName: AuditSettingPropertyUtils
 * @Description: 审核金额设置虚拟表与实体表转换
 * @author: gaoyaxiong
 * @date: 2013-5-26 下午11:14:13
 */
@Component
public class AuditSettingPropertyUtils {
	
	/**
	 * @methodName：getAuditSettingVo
	 * @Description: 审核金额设置实体表转换虚拟表对象
	 * @param AuditSetting
	 * @return AuditSettingVo
	 * @author: gaoyaxiong
	 * @date: 2013-5-26 下午18:22:03
	 */
	public AuditSettingVo getAuditSettingVo(AuditSetting as){
		AuditSettingVo asVo = new AuditSettingVo();
		asVo.setUserRole(as.getUserRole());
		asVo.setAuditState(as.getAuditState());
		asVo.setMoney(as.getMoney());
		asVo.setDeleteFlag(as.getDeleteFlag());
		asVo.setCode(as.getCode());
		return asVo;
	}
	
	/**
	 * @methodName：getAuditSetting
	 * @Description: 审核金额设置虚拟表转换实体表对象
	 * @param AuditSettingVo
	 * @return AuditSetting
	 * @author: gaoyaxiong
	 * @date: 2013-5-26 下午18:22:03
	 */
	public AuditSetting getAuditSetting(AuditSettingVo asVo){
		AuditSetting as = new AuditSetting();
		as.setUserRole(asVo.getUserRole());
		as.setAuditState(asVo.getAuditState());
		as.setMoney(asVo.getMoney());
		as.setDeleteFlag(asVo.getDeleteFlag());
		as.setCode(asVo.getCode());
		return as;
	}
}
